package com.aorise.mapper.halt;

import com.aorise.model.halt.*;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.dao.DataAccessException;
import org.springframework.stereotype.Component;

import java.util.List;
import java.util.Map;


/**
* @Author:cat
* @Description 停机点赞mybatis接口类
* @Date:Created in 2019-06-11
* @Modified By:
*/
@Mapper
@Component(value = "haltLikesMapper")
public interface HaltLikesMapper {

    /**
     * @Author:cat
     * @Description 根据停机记录ID、用户ID查询点赞记录
     * @params: map 查询条件Map
     * @Date:2019-06-11
     * @Return: HaltLikesModel 停机点赞信息
     * @Modified By:
     */
    HaltLikesModel getHaltLikesByHaltIdUserId(Map<String, Object> map) throws DataAccessException;

    /**
     * @Author:cat
     * @Description 新增停机点赞信息
     * @params: HaltLikesModel 停机点赞信息
     * @Date:2019-06-11
     * @Return: Integer 影响行数
     * @Modified By:
     */
    Integer addHaltLikes(HaltLikesModel haltLikesModel) throws DataAccessException;

    /**
     * @Author:cat
     * @Description 删除停机点赞信息
     * @params: map 查询条件Map
     * @Date:2019-06-11
     * @Return: Integer 影响行数
     * @Modified By:
     */
    Integer deleteHaltLikes(Map<String, Object> map) throws DataAccessException;

}